{*******************************************************************************
* The contents of this file are used with permission, subject to the Mozilla   *
* Public License Version 1.1 (the "License"); you may not use this file except *
* in compliance with the License. You may obtain a copy of the License at      *
* http://www.mozilla.org/MPL/                                                  *
*                                                                              *
* Software distributed under the License is distributed on an "AS IS" basis,   *
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for *
* the specific language governing rights and limitations under the License.    *
*                                                                              *
* The Original Code is distributed as part of the "mediate" product and is     *
* Copyright (C) @home media limited. All Rights Reserved.                      *
*                                                                              *
* Email: support@athomemedia.co.uk                                             *
* Web:   http://www.athomemedia.co.uk                                          *
*******************************************************************************}

unit VellemanConsts;

interface

uses MetaConsts;

const
  // Velleman plugin specific action/event names
  EVENT_VELLEMAN_INPUT_CHANGE_DIGITAL = 'plugin.velleman.input.digital.changed';
  EVENT_VELLEMAN_INPUT_CHANGE_ANALOG = 'plugin.velleman.input.analog.changed';
  EVENT_VELLEMAN_INPUT_CHANGE_COUNTER = 'plugin.velleman.input.counter.changed';

  EVENT_VELLEMAN_WRITE_ANALOG_OUTPUTS = 'plugin.velleman.output.analog.update';
  EVENT_VELLEMAN_WRITE_DIGITAL_OUTPUT = 'plugin.velleman.output.digital.updatevalue';
  EVENT_VELLEMAN_WRITE_BITS_OUTPUT = 'plugin.velleman.output.digital.updatebits';
  EVENT_VELLEMAN_WRITE_ALL_OUTPUTS = 'plugin.velleman.output.all.update';
  EVENT_VELLEMAN_RESET_COUNTER1 = 'plugin.velleman.output.counter1.reset';
  EVENT_VELLEMAN_RESET_COUNTER2 = 'plugin.velleman.output.counter2.reset';
  EVENT_VELLEMAN_RESET_COUNTERS = 'plugin.velleman.output.counters.reset';

  // Velleman plugin specific metadata names
  META_VELLEMAN = 'velleman';

  META_VELLEMAN_INPUTS = META_VELLEMAN + META_SEP + 'inputs';
  META_VELLEMAN_IN_ANALOG = META_VELLEMAN_INPUTS + META_SEP + 'analog';
  META_VELLEMAN_IN_ANACH1 = META_VELLEMAN_IN_ANALOG + META_SEP + '1';
  META_VELLEMAN_IN_ANACH2 = META_VELLEMAN_IN_ANALOG + META_SEP + '2';

  META_VELLEMAN_IN_DIGITAL = META_VELLEMAN_INPUTS + META_SEP + 'digital';
  META_VELLEMAN_IN_DIGVAL = META_VELLEMAN_IN_DIGITAL + META_SEP + 'value';
  META_VELLEMAN_IN_DIGCH1 = META_VELLEMAN_IN_DIGITAL + META_SEP + '1';
  META_VELLEMAN_IN_DIGCH2 = META_VELLEMAN_IN_DIGITAL + META_SEP + '2';
  META_VELLEMAN_IN_DIGCH3 = META_VELLEMAN_IN_DIGITAL + META_SEP + '3';
  META_VELLEMAN_IN_DIGCH4 = META_VELLEMAN_IN_DIGITAL + META_SEP + '4';
  META_VELLEMAN_IN_DIGCH5 = META_VELLEMAN_IN_DIGITAL + META_SEP + '5';

  META_VELLEMAN_IN_COUNTER = META_VELLEMAN_INPUTS + META_SEP + 'counter';
  META_VELLEMAN_IN_CNTCH1 = META_VELLEMAN_IN_COUNTER + META_SEP + '1';
  META_VELLEMAN_IN_CNTCH2 = META_VELLEMAN_IN_COUNTER + META_SEP + '2';

  META_VELLEMAN_OUTPUTS = META_VELLEMAN + META_SEP + 'outputs';
  META_VELLEMAN_OUT_ANALOG = META_VELLEMAN_OUTPUTS + META_SEP + 'analog';
  META_VELLEMAN_OUT_ANACH1 = META_VELLEMAN_OUT_ANALOG + META_SEP + '1';
  META_VELLEMAN_OUT_ANACH2 = META_VELLEMAN_OUT_ANALOG + META_SEP + '2';

  META_VELLEMAN_OUT_DIGITAL = META_VELLEMAN_OUTPUTS + META_SEP + 'digital';
  META_VELLEMAN_OUT_DIGVAL = META_VELLEMAN_OUT_DIGITAL + META_SEP + 'value';
  META_VELLEMAN_OUT_DIGCH1 = META_VELLEMAN_OUT_DIGITAL + META_SEP + '1';
  META_VELLEMAN_OUT_DIGCH2 = META_VELLEMAN_OUT_DIGITAL + META_SEP + '2';
  META_VELLEMAN_OUT_DIGCH3 = META_VELLEMAN_OUT_DIGITAL + META_SEP + '3';
  META_VELLEMAN_OUT_DIGCH4 = META_VELLEMAN_OUT_DIGITAL + META_SEP + '4';
  META_VELLEMAN_OUT_DIGCH5 = META_VELLEMAN_OUT_DIGITAL + META_SEP + '5';
  META_VELLEMAN_OUT_DIGCH6 = META_VELLEMAN_OUT_DIGITAL + META_SEP + '6';
  META_VELLEMAN_OUT_DIGCH7 = META_VELLEMAN_OUT_DIGITAL + META_SEP + '7';
  META_VELLEMAN_OUT_DIGCH8 = META_VELLEMAN_OUT_DIGITAL + META_SEP + '8';

implementation

end.
